public class Task05 {
    public static void main(String[] args) {
        System.out.println("测试max函数：");
        Computer computer = new Computer();
        int max1 = computer.max(1, 2);
        float max2 = computer.max(3.0f, 4.0f);
        double max3 = computer.max(5.0, 6.0);
        System.out.println("int型："+max1);
        System.out.println("float型："+max2);
        System.out.println("double型："+max3);
        System.out.println("------------------------------------------------------");
        System.out.println("测试Sum函数：");
        int[] arr1 = new int[3];
        for (int i = 0; i < arr1.length; i++) {
                arr1[i]=i;
        }
        float[] arr2 = new float[]{4.0f, 5.0f, 6.0f};
        double[] arr3 = {7.0, 8.0, 9.0};
        int sum1 = computer.Sum(arr1);
        float sum2 = computer.Sum(arr2);
        double sum3 = computer.Sum(arr3);
        System.out.println("int型："+sum1);
        System.out.println("float型："+sum2);
        System.out.println("double型："+sum3);
    }
}
